//
//  YKUserDefaults.h
//  YingkeWlanIOS
//
//  Created by FranklinPhill on 15/8/7.
//  Copyright (c) 2015年 FranklinPhill. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AKUserDefaults : NSObject

@property (copy, nonatomic) NSString *versionString;    //NSUserDefaults中存储的app版本号，通过比较该版本号和bundle版本号来确定是否初次启动应用
@property (assign, nonatomic) AKAppState state;         // 0，普通情况；1，初次启用；2，系统更新
@property (copy, nonatomic) NSString *deviceid;         //设备ID
@property (copy, nonatomic) NSString *apMsg;            //ap信息
@property (copy, nonatomic) NSString *nasIp;            //nasIp
@property (strong, nonatomic) NSDictionary *acmac;      //ac物理地址

//以下隐私数据使用keychain操作
@property (copy, nonatomic) NSString *token;            //获取的token
@property (copy, nonatomic) NSString *dc;               //登录的dc
@property (copy, nonatomic) NSString *phone;            //手机号(登录账号)
@property (copy, nonatomic) NSString *pwd;              //密码

+ (id)sharedInstance;   //返回实体单例
+ (void)synchronize;    //序列化存储
+ (void)registerUserDefaults;   //app启动注册（启动后要做的第一件事情）

@end
